﻿using FakeXiecheng.API.ValidationAttributes;
using System.ComponentModel.DataAnnotations;

namespace FakeXiecheng.API.Dtos
{


    public class TouristRouteForCreateDTO :TouristRouteValidataDTO
    {
       
        /*        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
                {
                    if (Title == Description)
                    {
                        yield return new ValidationResult(
                            "路线名称必须与路线描述不一致！"//错误信息
                            , new[] { "TouristRouteForCreateDTO" });//错误路径
                    }


                }
        */
    }
}
